import request from '@/router/axios';

//获取动作库树状结构
export const speTreeList = (params) => {
    return request({
        url: '/library/profession-tech-classify/tree',
        method: 'get',
        params
    })
}
//获取专业库节点类型
export const getSypeList = (params) => {
    return request({
        url: '/base/structure-relate-rule/list',
        method: 'get',
        params
    })
}

//获取专业库父级节点类型
export const getSpeParList = (params) => {
    return request({
        url: '/library/profession-tech-classify/list',
        method: 'get',
        params
    })
}

//获取动作库表格数据
export const speDataList = (params) => {
    return request({
        url: '/library/profession-tech-classify/page',
        method: 'get',
        params
    })
}

//专业库新增
export const addStreeList = (data) => {
    return request({
        url: '/library/profession-tech-classify/add',
        method: 'post',
        data
    })
}

//专业库编辑
export const updateStreeList = (data) => {
    return request({
        url: '/library/profession-tech-classify/update',
        method: 'post',
        data
    })
}

//专业库删除
export const removeStreeList = (id) => {
    return request({
        url: '/library/profession-tech-classify/delete',
        method: 'post',
        data:{
            id
        }
    })
}
//获取编制人
export const getuser = (params) => {
    return request({
        url: '/blade-user/list',
        method: 'get',
        params
    })
}

//转移
export const replaceTable = (data) => {
    return request({
        url: '/library/profession-tech-classify/task-transfer',
        method: 'post',
        data
    })
}
// 新增专业工艺库-工序操作指导
export const GYadd = (data) => {
    return request({
        url: '/library/profession-tech-process-guide/add',
        method: 'post',
        data
    })
}